package com.example.se2_funmessages;

public class Message {
	
	public int Message_Id;
	public int To_Id;
	public int From_Id;
	public String body;
	public String date;
	public String[] compactArray = new String[7];
	public String To_User;
	public String From_User;
	
	@Override
	public String toString() {
		return body;
	}

	public String[] compact() 
	{			
		compactArray[0] = To_User;
		compactArray[1] = From_User;
		compactArray[2] = body;
		compactArray[3] = Message_Id+"";
		compactArray[4] = To_Id+"";
		compactArray[5] = From_Id+"";
		compactArray[6] = date;
		return compactArray;
	}

}
